package epl

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type ErotableRouter struct {}

// InitErotableRouter 初始化 Erotable表 路由信息
func (s *ErotableRouter) InitErotableRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	erotableRouter := Router.Group("erotable").Use(middleware.OperationRecord())
	erotableRouterWithoutRecord := Router.Group("erotable")
	erotableRouterWithoutAuth := PublicRouter.Group("erotable")
	{
		erotableRouter.POST("createErotable", erotableApi.CreateErotable)   // 新建Erotable表
		erotableRouter.DELETE("deleteErotable", erotableApi.DeleteErotable) // 删除Erotable表
		erotableRouter.DELETE("deleteErotableByIds", erotableApi.DeleteErotableByIds) // 批量删除Erotable表
		erotableRouter.PUT("updateErotable", erotableApi.UpdateErotable)    // 更新Erotable表
	}
	{
		erotableRouterWithoutRecord.GET("findErotable", erotableApi.FindErotable)        // 根据ID获取Erotable表
		erotableRouterWithoutRecord.GET("getErotableList", erotableApi.GetErotableList)  // 获取Erotable表列表
	}
	{
	    erotableRouterWithoutAuth.GET("getErotablePublic", erotableApi.GetErotablePublic)  // Erotable表开放接口
	}
}
